package com.dt.app.api.test.service;

import com.dt.app.modules.test.entities.TestClass;
import com.dt.app.modules.test.vo.TestClassBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 班级 服务类
 * </p>
 * @author 鸿源塔基
 * @since 2023-02-21
 */
public interface ITestClassService extends IService<TestClass> {
    public TestClass getEntity(TestClassBean bean);
    public TestClassBean getBean(TestClass entity);

    /**
     * 根据id获取名称
     * @param classId
     * @return
     */
    public String getNameById(Long classId);

    public String getNameByIdInRedis(Long classId);

    /**
     * 获取年级
     * @return
     */
    public List<TestClass> getGrades();

    /**
     * 缓存获取年级
     * @return
     */
    public List<TestClassBean> getGradesInRedis();

    /**
     *
     * @param testGradeId
     */
    public List<TestClass> getClassByGradeId(Long testGradeId);
}
